namespace SimpleWebServices.Web
{
    using System.Web.Mvc;
    using System.Xml.Serialization;
    using SimpleWebServices.Web.Mvc;

    [XmlRoot("redirection")]
    public class MovedPermanently : Redirection
    {
        public MovedPermanently()
            : base()
        {
        }

        public MovedPermanently(string location)
        {
            this.Location = location;
        }

        public override ActionResult ToActionResult()
        {
            return new MovedPermanentlyResult(this.Location);
        }
    }
}